layui.define(['jquery', 'element', 'carousel'], function(exports) {
	var moduleName = "index";
	var $ = layui.jquery;
	var element = layui.element;
	var carousel = layui.carousel;
	var $doc= $(document);	
	carousel.render({
		elem: '#banner',
		width: '100%', 
		height:'4rem',
		arrow: 'always',
	})
	$doc.on('click','#nav-btn',function(){
		$("#menus").stop().toggle(300);
		$('body').stop().toggleClass('hide')
	})
	exports(moduleName)
})
